/**	
 * Author : Mht
 * Desc : For 2016 RDM 
 */
package util;

/**
 * @author Mht
 * @date Jun 14, 2016
 */
public class DbUtils<T> {

	@SuppressWarnings("rawtypes")
	private static final ThreadLocal local = new ThreadLocal();

	@SuppressWarnings("unchecked")
	public static <T> T getDbType() {
		return (T) local.get();
	}

	@SuppressWarnings("unchecked")
	public static void setDbType(String dbName) {
		local.set(dbName);
	}

	public static void clear() {
		local.remove();
	}
}
